tests: Fix u-boot test failure
authorColin Walters <walters@verbum.org>
Tue, 25 Nov 2014 20:21:11 +0000 (15:21 -0500)
committerColin Walters <walters@verbum.org>
Tue, 25 Nov 2014 20:21:12 +0000 (15:21 -0500)
This bit needs to be specific to syslinux.

tests/admin-test.sh

index ebb18849a6624e4c363df47e6a16a27dbf320529..f0e2e6431a82b31d1807115b0ca8fb409ec05703 100755 (executable)
@@ -1,4 +1,3 @@
-#!/bin/bash
 #
 # Copyright (C) 2011,2014 Colin Walters <walters@verbum.org>
 #
@@ -29,7 +28,9 @@ ostree admin --sysroot=sysroot deploy --karg=root=LABEL=MOO --karg=quiet --os=te
 ostree admin --sysroot=sysroot status | tee status.txt
 
 assert_file_has_content status.txt 'Version: 1.0.10'
-assert_file_has_content sysroot/boot/loader/syslinux.cfg 'TestOS 42 1.0.10'
+if test -f sysroot/boot/loader/syslinux.cfg; then
+    assert_file_has_content sysroot/boot/loader/syslinux.cfg 'TestOS 42 1.0.10'
+fi
 
 echo "ok deploy command"